import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import "@/plugin/u-view/index";
import "@/plugin/filter/index";
import store from 'store/index.js'
Vue.prototype.$store = store

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App,
	store
})
import VueCompositionAPI from "@vue/composition-api";
Vue.use(VueCompositionAPI);

// app.$mount()


import mixins from '@/mixins'
Vue.mixin(mixins)

/**
 * http拦截器
 * -----开始------
 */
import httpInterceptor from "@/plugin/http/index";
Vue.use(httpInterceptor, app);

/**
 * API
 * -----开始------
 */
import api from "@/plugin/api/index";
Vue.use(api, app);



Vue.prototype.$safeArea = uni.getSystemInfoSync().safeAreaInsets
Vue.prototype.$windowInfo = uni.getSystemInfoSync()
app.$mount()
// #endif